import Vue from 'vue'
import Router from 'vue-router'
import ChattingRoom from '../components/ChattingRoom.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'
import Home from '../components/Home.vue'
import Users from '../components/Users.vue'
import Self from '../components/Self.vue'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Login',
      component: Login
    }, {
      path: '/room',
      name: 'ChattingRoom',
      component: ChattingRoom
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/user',
      name: 'Users',
      component: Users
    },
    {
      path: '/self',
      name: 'Self',
      component: Self
    }
  ]
})
